<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: mars
  Date: 2019-06-17
  Time: 18:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<h1>Login</h1>
<form:form action="${pageContext.request.contextPath}/user/login" method="post" modelAttribute="loginForm">
    <form:label path="email">email:</form:label>
    <form:input path="email"/>
    <br>
    <form:label path="password">password:</form:label>
    <form:password path="password"/>
    <br>
    <p>${error}</p>
    <input type="submit" value="submit">
</form:form>
</body>
</html>
